package com.kaikeba.estack.web.controller;

import com.kaikeba.estack.web.ApplicationContext;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Auth xingwan
 * @Date 2020/10/3 1:06
 **/
public class BaseController {

    /**
     * 获取当前请求的request
     *
     * @return
     */
    protected HttpServletRequest getRequest() {
        return ApplicationContext.getRequest();
    }

    /**
     * 获取当前请求的response
     *
     * @return
     */
    protected HttpServletResponse getResponse() {
        return ApplicationContext.getResponse();
    }
}
